package com.agy.filemanager.common;

import org.apache.commons.math3.analysis.function.Exp;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

public class ExpressionMap<T> {

    private final T t ;

    private ExpressionMap(T t) {
        this.t = t;
    }

    public  static <T> ExpressionMap getInstance(T t){
        return  new ExpressionMap<T>(t);
    }

    public T getData() {
        return t;
    }

    @Override
    public int hashCode() {
        return t.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null || !(obj instanceof ExpressionMap)) return false;
        ExpressionMap map = (ExpressionMap) obj;
        return t.equals(map.getData());
    }
}

